package com.huohuzhihui.merchant.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.huohuzhihui.common.annotation.Excel;
import com.huohuzhihui.common.core.domain.BaseEntity;

/**
 * 商户资源对象 mer_resource
 *
 * @author huohuzhihui
 * @date 2021-04-01
 */
public class MerResource extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 所属商户
     */
    @Excel(name = "所属商户")
    private Long merchantId;
    /**
     * 商户名称
     */
    private String merchantName;

    /**
     * 资源名称
     */
    private String name;

    /**
     * 资源分组
     */
    @Excel(name = "资源分组")
    private Long groupId;
    /**
     * 资源分组名称
     */
    private String groupName;


    /**
     * 资源类型：0图片1视频2音频
     */
    @Excel(name = "资源类型：0图片1视频2音频")
    private String resourceType;

    /**
     * 资源地址
     */
    @Excel(name = "资源地址")
    private String resourceUrl;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public String getResourceType() {
        return resourceType;
    }

    public void setResourceUrl(String resourceUrl) {
        this.resourceUrl = resourceUrl;
    }

    public String getResourceUrl() {
        return resourceUrl;
    }

    public String getMerchantName() {
        return merchantName;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public void setResourceType(String resourceType) {
        this.resourceType = resourceType;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("merchantId", getMerchantId())
                .append("groupId", getGroupId())
                .append("resourceType", getResourceType())
                .append("resourceUrl", getResourceUrl())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
